import { createApp } from 'vue'
import { router } from './router'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import { createPinia } from 'pinia'
import 'virtual:windi.css'
import './permission'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "nprogress/nprogress.css"
import permission from './directives/permission'
const app = createApp(App)
const pinia = createPinia();
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router);
app.use(pinia);
app.use(permission);
app.mount('#app');
